/* fileUpload.css - 文件上传相关样式 */

/* 文件上传按钮样式 */
.deepseek-file-upload {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    margin-right:9px;
}

.deepseek-file-upload:hover {
    background-color: #f3f4f6;
    color: #2970ff;
    transform: scale(1.05);
}

.deepseek-file-upload.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.deepseek-file-upload i {
    font-size: 16px;
}

.deepseek-file-upload input[type="file"] {
    display: none;
}

/* 文件预览容器 - 位于输入框上方 */
.file-previews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    max-width: 100%;
    padding: 0 8px;
}

/* 文件预览样式 */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f3f4f6;
    border-radius: 6px;
    padding: 6px 10px;
    max-width: 200px;
    flex-grow: 0;
    flex-shrink: 0;
    border: 1px solid var(--deepseek-border, #e5e7eb);
}

.file-info {
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 6px;
    max-width: calc(100% - 24px);
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.file-size {
    color: #6b7280;
    font-size: 10px;
    white-space: nowrap;
}

.remove-file {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 4px;
}

.remove-file:hover {
    background-color: #e5e7eb;
    color: #ef4444;
}

.file-upload-info {
    margin-top: 8px;
    font-size: 12px;
    color: var(--deepseek-secondary-text);
    background-color: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

/* 发送按钮样式 */
.deepseek-send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--deepseek-primary, #2970ff);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 14;
    flex-shrink: 0;
}

.deepseek-send-button:hover {
    background-color: #1a56db;
    transform: scale(1.05);
}

.deepseek-send-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.deepseek-send-button i {
    font-size: 16px;
}